package Automate;

public class Bot {

	
	Client client;
	
	public Bot(Client c){
		client = c;
	}
	
	public void randClick(){
		double rand = Math.random();
		
		if(rand>0.6){
			client.clicBGN();
		}
		else if(rand>0.3){
			client.clicEND();
		}
		else{
			client.clicSEND();
		}
	}
	
	public void aimClick(){
		int etat = client.getEtatCurrent();
		switch(etat){
			case 0:
				client.clicBGN();
				break;
			case 1:
				break;
			case 3:
				break;
			
			case 2:
				if(Math.random()<0.8){
					client.clicSEND();
				}
				else{
					client.clicEND();
				}
				break;
			
			default:System.err.println("error");
		}
	
	}
	
}
